package com.hey.service01.service;

import com.hey.service01.dao.UserDao;
import com.hey.service01.entity.Testx;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Flux;

import java.util.List;

@Service
public class UserService {

    @Autowired
    UserDao userDao;

    public Flux<List<Testx>> findAll(){
        var list = userDao.findAll();
        return Flux.just(list);
    }
}
